FROM node:10

# Create app directory
RUN mkdir -p /data/nodework
WORKDIR /data/nodework

#VOLUME ["/data/node_logs", "/data/nodework"]
COPY apt.txt /etc/apt/apt.txt
RUN cd /etc/apt && mv sources.list sourcebak && mv apt.txt sources.list
RUN apt-get update && apt-get upgrade && apt-get install -y vim
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)

# If you are building your code for production
# RUN npm install --only=production

# Bundle app source

EXPOSE 8080
